const {
	myRequest
} = require('@/utils/request.js')
module.exports = {
	//支付订单新增
	newPaymentOrder: (params) => myRequest({
		url: `https://job.ydylmold.cn/circle/api/circleRewardOrder/saveData`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//微信h5支付
	h5WxPay: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/wxH5Pay`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//微信app支付
	appWxPay: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/wxAppPay`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//微信jsapi支付
	wxObtainPayJSApi: (params) => myRequest({
		url: `ydylpay/wxObtainPayJSApi`,
		methods: 'POST',
		data: params,
		auth: true
	}),
	//支付宝web支付
	TreasureToPayWeb: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/aliWebPay`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//支付宝App支付
	TreasureToPayApp: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/aliAppPay`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//查询用户总余额  
	queryAccount: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/userAmtDTO/selectUserBalance`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//查询公司总余额
	companyQueryAccount: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/companyAmtDTO/selectUserBalance`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//订单列表查询
	getTheOrderList: (params) => myRequest({
		url: `https://job.ydylmold.cn/circle/api/circleOrderBill/selectCircleOrderBill`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//查询订单支付状态
	orderPaymentStatus: (params) => myRequest({
		url: `usrVip/queryUsrVipState`,
		methods: 'POST',
		data: params,
		auth: true
	}),
	//小程序获取openid
	wxObtainOpenid: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/wxObtainOpenid`,
		methods: 'POST',
		interception: true,
		data: params
	}),
	//查询余额是否充足
	queryWhetherSufficientBalance: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/queryUserBalance`,
		methods: 'POST',
		interception: true,
		data: params,
		auth: true
	}),
	//余额支付
	theBalancePayment: (params) => myRequest({
		url: `https://job.ydylmold.cn/ydylPay/api/balancePay`,
		methods: 'POST',
		interception: true,
		data: params,
		auth: true
	}),
	//支付宝提现发送验证码
	withdrawalVerificationCode: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/sms/getBalanceCode`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	/*支付密码相关*/
	// 判断个人是否存在支付密码
	getPaymentPasswordIsExist: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/getPaymentPasswordIsExist`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 判断企业是否存在支付密码
	getPaymentPasswordIsExistForCom: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/getPaymentPasswordIsExistForCom`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 验证个人支付密码是否正确
	selectPaymentPassword: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/selectPaymentPassword`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 验证企业支付密码是否正确
	selectPaymentPasswordForCom: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/selectPaymentPasswordForCom`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 设置个人支付密码
	insrtPaymentPassword: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/insrtPaymentPassword`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 设置企业支付密码
	insrtPaymentPasswordForCom: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/insrtPaymentPasswordForCom`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 提现相关
	// 微信支付宝提现
	withdraw: (params) => myRequest({
		url: `https://job.ydylmold.cn/circle/api/circleRewardOrder/withdraw`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	// 提现设置查询
	withdrawSetInfoSearch: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/base/withdrawSetInfoSearch`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	searchWithdrawList: (params) => myRequest({
		url: `https://job.ydylmold.cn/circle/api/searchWithdrawList`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//判断是不是vip
	useUsrVipAccredit: (params) => myRequest({
		url: `usrVipAccredit/useUsrVipAccredit`,
		methods: 'POST',
		data: params,
		auth: true
	}),
	userVipSearch: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/job/userVip/search`,
		// url: `http://192.168.3.59:8081/api/job/userVip/search`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//VIP列表
	vipSetSearch: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/job/vipSet/search`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	addUserOrder: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/job/userOrder/dataSave`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
	//自定义套餐查询价格
	vipDiySearch: (params) => myRequest({
		url: `https://job.ydylmold.cn/api/job/vipDiy/search`,
		methods: 'POST',
		data: params,
		interception: true,
		auth: true
	}),
}
